package com.frost500.nacosconsumerfeign.web;

import com.frost500.nacosconsumerfeign.client.NacosDiscoveryServerClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;

@RestController
public class HelloController {

    @Autowired
    private NacosDiscoveryServerClient nacosDiscoveryServerClient;

    @GetMapping("/test")
    public String test() {
        return nacosDiscoveryServerClient.hello("frost500");
    }
}
